import {Option} from "../types/index";

export const getName = (arr:Option[], id: number) => {
  let res = '';
  let obj = arr.find(i => {
    return i.id === id || null
  }) 
  if(obj) {
    res = obj.name
  }
  return res;
}

// 提示未选
export const getUnSelectedPersonTip = (item: any) => {
}